{{include file="user/u_header.html"}}
<style type="text/css">
.pwdlevel{line-height:22px; width:123px; height:22px; border:#ccc solid 1px; border-left:none; margin-top:3px;}
.pwdlevel a{display:block; float:left; border-left:#ccc solid 1px; width:40px; height:22px; text-align:center; color:#000}
</style>
<script type="text/javascript" src="res/public/js/authpass.js"></script>
<script type="text/javascript" src="res/public/js/jquery/jquery.form.js"></script>
<script type="text/javascript" src="res/public/js/jquery/jquery.validate.min.js"></script>
<script type="text/javascript">
$(function(){
	var options = {type:"post",dataType:"json", beforeSubmit:function(){
				$.jBox.tip('正在提交验证，请稍后..', 'loading');
			},success:function(res){
				$.jBox.tip(res.msg, res.code);
			}
		};
	
	var v = $("#form1").validate({		
		submitHandler: function(form) {
			$(form).ajaxSubmit(options);
		},rules: {
			oldpass: { required: true, minlength: 6 },
			newpass: { required: true, minlength: 6},
			newpass1: { required: true, equalTo: "#newpass" }
		},
		messages: {
			oldpass: { required: "请输入旧密码", minlength: "旧密码格式异常" },
			newpass: { required: "请输入新密码", minlength: "新密码必须大于6位字符", },
			newpass1: { required: "请再次输入新密码", equalTo: "输入的两次密码不一致" }
		},
		success: function(label) {
		    label.html('<i class="success"></i>').addClass("checked");
		},
	});
});
</script>
<div class="w998 u_main">
	{{include file="user/u_leftMenu.html"}}
	<div class="Fr right">
		<div class="u_where">您当前位置：会员中心 &gt;&gt; 个人中心 &gt;&gt; 用户密码安全管理</div>
		<!--右侧开始-->
		<form id="form1" name="form1" method="post" action="user.php?{{$TIN_CTL}}=ajax&{{$TIN_ACT}}=UpdatePasswd">
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tablecss1">
			<tr>			
				<td align="right" width="300"><font class="f_Red1">*</font> 旧密码：</td>
				<td><input type="password" name="oldpass" id="oldpass" value=""></td>
			</tr>
			<tr>
				<td align="right"><font class="f_Red1">*</font> 新密码：</td>
				<td><input type="password" name="newpass" id="newpass" onkeyup="AuthPasswd('newpass')" value="">
					<div class="pwdlevel"><a id="weak">弱</a><a id="middle">中</a><a id="strength">很强</a></div> </td>
			</tr>
			<tr>
				<td align="right"><font class="f_Red1">*</font> 确认新密码：</td>
				<td><input type="password" name="newpass1" id="newpass1" value=""></td>
			</tr>
		</table>
		<div style="text-align:center; margin-top:10px">
			<input type="submit" name="btnsubmit" id="btnsubmit" value="提交修改" class="btnbj btn_red">
		</div>	
		</form>	
		<!--右侧结束-->
	</div>
</div>
<div class="spacer"></div>
{{include file="user/u_footer.html"}}
